package com.hxx.controller;

import com.hxx.domain.TUser;
import com.hxx.service.UserService;
import com.hxx.service.impl.UserServiceImpl;
import java.util.List;

public class UserController {

    private UserService userService = new UserServiceImpl();

     // 添加用户
    public void addUser(TUser tUser) {
        userService.addUser(tUser);
    }
     // 获取用户
    public TUser getUser(Integer id) {
        return userService.getUser(id);
    }
     // 获取所有用户
    public List<TUser> getAllUser() {
        return userService.getAllUser();
    }
     // 更新用户
    public void updateUser(TUser tUser) {
        userService.updateUser(tUser);
    }
     // 删除用户
    public void deleteUser(Integer id) {
        userService.deleteUser(id);
    }

}


























